<template>
  <el-card class="box-card">
    <template #header>
      <div class="card-header">
        <a href="#" index="pjt" @click="gopjt()">消防巡检</a>
        <a href="#" index="ktw" @click="goktw()">消息通知</a>
        <a href="#" index="ktw1" @click="goktw1()">备忘录</a>
        <a href="#" index="ktw2" @click="goktw2()">维修手册</a>
        
      </div>
    </template>
    <div>
       <router-view/>
    </div>
  </el-card>
</template>

<script>
export default {
  methods:{
      gopjt(){
        this.$router.replace('/pjt')
      },
      goktw(){
        this.$router.replace('/ktw')
      },
      goktw1(){
        this.$router.replace('/ktw1')
      },
      goktw2(){
        this.$router.replace('/ktw2')
      }
    }
 
    
 
  
};
</script>
<style >
.card-header {
  display: flex;
}

.text {
  font-size: 14px;
}

.box-card {
  width: 100%;
  margin: 5px;
  
}
a{
  padding: 0 20px;
}
</style>
